package com.xu.chuang.show.network;

import android.os.StrictMode;

/**
 * Created by coder on 2016/8/7.
 * @author MagicRain
 */
public class SyncRequest {
    public static void syncReq() {
        //详见StrictMode文档
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog().build());
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectLeakedSqlLiteObjects().detectLeakedClosableObjects().penaltyLog().penaltyDeath().build());
    }
}
